<?php
namespace app\agent\controller;


use app\agent\service\UserAgentService;

/**
 * 代理商平台管理
 * @module 代理商平台管理
 * @controller 代理商平台
 */
class IndexController extends BaseController
{
    private $userAgent = null;
	
	public function __construct()
	{
		parent::__construct();

		$this->userAgent = new UserAgentService();
	}

    /**
     * @action 代理商后台管理主页
     */
    public function index()
    {
        $request['uid']       = session('uid');
        $request['type']      = session('type');
        $request['addr_code'] = session('addr_code');

        //获取首页数据
        $data = $this->userAgent->home($request);

        $this->assign('data', $data);

        return $this->fetch('home');
	}
	
}